package com.sd.util;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface.OnCancelListener;

public class LoadingProgressDialog {
	private static ProgressDialog mProgress;
	
	
	public static void show(Context context,int Rmessage){
		String message = context.getResources().getString(Rmessage);
		mProgress = ProgressDialog.show(context, null, message);
	}
	
	public static void show(Context context,int Rmessage,OnCancelListener cancelListener){
		String message = context.getResources().getString(Rmessage);
		mProgress = ProgressDialog.show(context, null, message, true, true, cancelListener);
	}
	
	public static void ff(){
	}
	public static void dismiss(){
		mProgress.dismiss();
	}
}
